package models

import "github.com/shopspring/decimal"

type ProOrder struct{
	OrderId int64 `json:"order_id" xorm:"bigint notnull pk 'OrderId'"`
	CustomerOrderNo string `json:"customer_order_no" xorm:"varchar(128) 'CustomerOrderNo'"`
	ProductId int `json:"product_id" xorm:"int 'ProductId'"`
	ProductName string `json:"product_name" xorm:"varchar(64) 'ProductName'"`
	ChargeAccount string `json:"charge_account" xorm:"varchar(32) 'ChargeAccount'"`
	BuyNum int `json:"buy_num" xorm:"int 'BuyNum'"`
	OrderType string `json:"order_type" xorm:"varchar(10) 'OrderType'"`
	OrderPrice decimal.NullDecimal `json:"order_price" xorm:"decimal(10,2) ProductPrice"`
	OrderState string `json:"order_state" xorm:"varchar(10) OrderState"`
	CreateTime string `json:"create_time" xorm:"varchar(20) CreateTime"`
	FinishTime string `json:"finish_time" xorm:"varchar(20) FinishTime"`
	Area string `json:"area" xorm:"varchar(20) Area"`
	Server string `json:"server" xorm:"varchar(20) Server"`
	CostType string `json:"type" xorm:"varchar(20) CostType"`
	CardIds string `json:"cards" xorm:"varchar(255) CardIds"`
	Cards []Card `json:"cards"`
	OperatorSerialNumber int64 `json:"operator_serial_number" xorm:"bigint OperatorSerialNumber"`
}
